﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PMQLNhaHang.Utils
{
    public class StringHelper
    {
        public static string BoDamCham(int so)
        {
            string result = null;
            int sodu;
            while (so > 0)
            {
                sodu = so % 1000;
                if (so < 999)
                    result = so.ToString() + result;
                else
                    result = "." + sodu.ToString("000") + result;
                so = so / 1000;

            }
            return result;
        }
    }
}
